﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Camelio
{
    public partial class SplashScreen : Form
    {
        public SplashScreen()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            //AuthenticationForm af = new AuthenticationForm();
            //af.Show();

            //af.FormClosing += SplashScreen_FormClosing;
            //this.Hide();
            timer1.Enabled = false;
            MainForm mf = new MainForm();
            mf.Show();
            mf.FormClosing += mf_FormClosing;
            this.Hide();
        }

        void mf_FormClosing(object sender, FormClosingEventArgs e)
        {
            //this.Close();
        }

        void SplashScreen_FormClosing(object sender, FormClosingEventArgs e)
        {
            //this.Close();
        }
    }
}
